using System.Runtime.InteropServices;
using FluentTests.Framework.Verbs;

namespace FluentTests.Framework.VerbExtensions
{
    public static class VerbFloatExtensions
    {
        public static void GreaterThan(this Is<float> verb, float compareValue)
        {
            var assertion = verb.EnsuredWrapperObject.AssertionProvider;
            var actualValue = verb.EnsuredWrapperObject.ActualValue;
            NumberAssertion.GreaterThan(actualValue, compareValue, verb.Negated, assertion);
        }

        public static void LessThan(this Is<float> verb, float compareValue)
        {
            var assertion = verb.EnsuredWrapperObject.AssertionProvider;
            var actualValue = verb.EnsuredWrapperObject.ActualValue;
            NumberAssertion.LessThan(actualValue, compareValue, verb.Negated, assertion);
        }

    }
}